package com.dhl.composite;

/**
 * @title: Department
 * @Author danghailiang
 * @Date: 2022/8/8 22:11
 * @Version 1.0
 */
// 二级节点
public class Department extends OrganizationComponent {

    // 叶子节点
    public Department(String name, String des) {
        super(name, des);
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public String getDes() {
        return super.getDes();
    }

    @Override
    public void print() {
        System.out.println(getName());
    }
}
